﻿using System;
using System.Collections.Generic;
using System.Text;

namespace T.FAS.Runtime.DataAccess.SPI
{
    /// <summary>
    /// 枚举值
    /// </summary>
    /// <remarks>枚举值</remarks>
    [Serializable]
    public class EnumValue : ICloneable
    {

        #region 字段

        /// <summary>
        /// 值
        /// </summary>
        private string val;

        /// <summary>
        /// 名称
        /// </summary>
        private string name;

        #endregion

        #region 属性

        /// <summary>
        /// 值
        /// </summary>
        public string Value
        {
            get { return val; }
            set { val = value; }
        }
        /// <summary>
        /// 名称
        /// </summary>
        public string Name
        {
            get { return name; }
            set { name = value; }
        }

        #endregion

        #region 构造函数
        /// <summary>
        /// 构造函数
        /// </summary>
        public EnumValue()
        { }
        #endregion

        #region 方法

        /// <summary>
        /// 克隆
        /// </summary>
        /// <returns>副本</returns>
        public object Clone()
        {
            EnumValue newEnumValue = new EnumValue();
            newEnumValue.val = this.val;
            newEnumValue.name = this.name;
            return newEnumValue;
        }

        #endregion
    }
}
